Defining Your Own Key Filter Function The key filter function allows for the interception and possible changing of keystrokes destined for a control.